package com.atguigu.domain;

/**
 * @author : leimingchao
 * @date Date : 2021年09月14日 22:35
 */
public class NoteBook implements Equipment {

    /**
     *  机器型号
     */
    private String model;

    /**
     * 价格
     */
    private double price;

    public NoteBook() {
    }

    public NoteBook(String model, double price) {
        this.model = model;
        this.price = price;
    }


    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String getDescription() {

        return model + "(" + price + ")";
    }
}
